cc.Class({
    extends: cc.Component,

    properties: {
        timer: {
            default: 5,
            type: Number
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    update (dt) {
        this.timer = this.timer - dt;
        this.node.getComponent(cc.Label).string = Math.ceil(this.timer);
    },
});
